Cipher and telegraph codes